How Can I Simplify Fractions in Python Without Using Extra Modules